#include "drivers/wavfile.h"

#define latch 0
#define hatch 1

typedef struct {
	unsigned char effect[15];
	unsigned char firstSlot[10];
	unsigned char secondSlot[10];
}FX;

typedef struct {
	tWavFile audio;
	unsigned short button;
	float fraction;
	unsigned short hl;
	unsigned char filename[10];
	unsigned int location;
	unsigned char **buffer;
	unsigned short enabled;
}GRID;

typedef struct {
	FX firstFX;
	FX secondFX;
	GRID buttons[16];
}CONFIG;

extern void getConfig(FIL *fp, CONFIG *config);
void ParseCommands(unsigned char** buffer, CONFIG *config);
int ConvertStringToInteger(unsigned char * number);
int ConvertHexToInteger(unsigned char number);
